#ifndef __LED_H__
#define __LED_H__
#include "gd32f10x.h"

typedef enum
{
    LED_Power = 0,
    LED_Page,
    LED_Other,

    LED_NUM
}LedID;

typedef struct 
{
    LedID    id;
    uint8_t  state;
    uint32_t gpio_periph;
    uint32_t pin;
}LED;

void led_init(void);
void led_set(uint8_t id, uint8_t state);

#endif
